package com.service.gmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.gmall.model.product.BaseCategory2;
import com.service.gmall.model.to.CategoryTreeTo;

import java.util.List;

/**
* @author alpha
* @description 针对表【base_category2(二级分类表)】的数据库操作Mapper
* @createDate 2022-08-22 22:45:59
* @Entity com.service.gmall.product.domain.BaseCategory2
*/
public interface BaseCategory2Mapper extends BaseMapper<BaseCategory2> {
    /**
     * @param
     * @description: 查询所有分类及其子分类
     * @return: java.util.List<com.service.gmall.model.to.CategoryTreeTo>
     * @author: alpha
     * @date: 2022/8/26 13:11
     */
    List<CategoryTreeTo> getAllCategoryTree();
}




